﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Player2Controler : MonoBehaviour {

    public float speed;
	void FixedUpdate()
    {
        float moveVertical = Input.GetAxis("Mouse Y");
        float moveHorizontal = Input.GetAxis("Mouse X");
        Vector3 vector3 = new Vector3(moveHorizontal, 0.0f, moveVertical);
        GetComponent<Rigidbody>().AddForce(vector3*speed*Time.deltaTime);
    }
}
